import React, {useEffect} from "react";
import DynamicTable from "@/pages/DynamicTable";
import {SuperAssemblyProps} from "@/pages/DynamicTable/data";
import GenDefaultConfig from "@/pages/GenDefault/gen/GenDefaultConfig";

const SuperGenDefault: React.FC<SuperAssemblyProps> = (props) => {
  const { custom } = props;

  useEffect(() => {
    GenDefaultConfig.columns = [...GenDefaultConfig.columns,...custom];
  },[custom])


  return (
    <DynamicTable assembly={GenDefaultConfig} />
  )
}

export default SuperGenDefault;
